SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 54586: Errors occur when the SAS® Strategy Management %PROJCALC macro includes a call to the %GETLSTNR macro

DetailsAboutRate It

The following error occurs when you invoke the SAS Strategy Management %PROJCALC macro and you include a call to the
%GETLSTNR macro:

1 options metaserver=StMmetasvr 2 metaport=8561 3 metarepository=Foundation 4 metauser="sasadm@saspw" 5 metapass=XXXXXXXX; 6 %getlstnr; ERROR: Cannot Login to metaserver= and metarepositry= or ERROR: Cannot obtain event server because there is no software component named Remote Services NOTE: DATA statement used (Total process time): real time 1.03 seconds cpu time 0.17 seconds 7 %ProjCalc(projectid=2fd65630-0a29-0ba4-014a-74b1e967da7c, 8 startdate=07012014, 9 enddate=11302014, 10 user=sasdemo, 11 password=sasdemoPW, 12 domain=DefaultAuth); ERROR: Cannot run calculate without an event server.

For example, you encounter this error when you invoke the %PROJCALC macro and you call %GETLSTNR in code similar to the following:

options metaserver=StMmetasvr metaport=8561 metarepository=Foundation metauser="sasadm@saspw" metapass=AdminPW; %getlstnr; %ProjCalc(projectid=2fd65630-0a29-0ba4-014a-74b1e967da7c, startdate=07012014, enddate=11302014, user=sasdemo, password=sasdemoPW, domain=DefaultAuth);

However, if you remove the %GETLSTNR macro call, the following error occurs:

ERROR: Cannot run calculate without an event server.

Note: The SAS Strategy Management: System Administration Guide (support.sas.com/documentation/onlinedoc/stm/index.html) for releases 5.5 and 5.6 both reference the %GETLSTNR macro when the %PROJCALC macro is invoked. %PROJCALC is called in order to start the calculation process on a SAS Strategy Management project. However, this is a documentation error and the %GETLSTNR macro should not be included.

To enable the %PROJCALC macro to run successfully, replace the %GETLSTNR macro call with a %GETSTMC macro call, as shown below:

options metaserver=StMmetasvr metaport=8561 metarepository=Foundation metauser="sasadm@saspw" metapass=AdminPW; %getstmc; %ProjCalc(projectid=2fd65630-0a29-0ba4-014a-74b1e967da7c, startdate=07012014, enddate=11302014, user=sasdemo, password=sasdemoPW, domain=DefaultAuth);


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Strategy ManagementLinux for x645.55.69.4 TS1M1
64-bit Enabled Solaris5.55.69.4 TS1M1
64-bit Enabled AIX5.55.69.4 TS1M1
Microsoft® Windows® for x645.55.69.4 TS1M1
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.